function [data labels] = read_pc(file_name_data, file_name_label)

fp = fopen(file_name_data);

% header(1) = number of samples
% header(2) = number of dimensions

header = fread(fp, 2, 'int32', 0);


data = fread(fp, header(1) * header(2), 'double', 0);

% data = MFCC features ( number of frames * number of dimensions)

data = reshape(data, header(2), header(1))';

fclose(fp);


fp = fopen(file_name_label);

header = fread(fp, 2, 'int32', 0);

labels = fread(fp, header(1) * header(2), 'double', 0);

labels = int32(labels);

fclose(fp);